# -*- coding: utf-8 -*-
# @Time    : 2019/10/24 8:35
# @Author  : 岳保保
# @File    : PagePaginationUtils.py
# @Software: PyCharm
from rest_framework.pagination import PageNumberPagination


class PagePagination(PageNumberPagination):
    # page_size = 3  # 设置每页显示的数量为3
    # # 优先使用page_size_query_param的设置来显示条数
    # page_size_query_param = 'size'  # 自己输入每页显示的条数
    # max_page_size = 50  # 一页显示的最大条数，与page_size_query_param搭配使用
    page_size = 10
    page_query_param = 'page'
    page_size_query_param = 'size'
    max_page_size = 20


